package e.odbo.data.dsl;

import java.util.HashMap;
import java.util.Map;

public class Join {
    String table;
    Select.JOIN joinType;
    Map<String,String> qbf;
    Select superSelect;

    public Join(Select.JOIN joinType, String table, Select superSelect) {
        this.joinType = joinType;
        this.qbf =new HashMap<>();
        this.table=table;
        this.superSelect=superSelect;
    }

    public Select.JOIN getJoinType() {
        return joinType;
    }

    public Join on(String left, String right){
        qbf.put(left,right);
        return this;
    }

    public String getTable(){
        return table;
    }

    public Select l(){
        return superSelect;
    }

    public Map<String, String> getQbf() {
        return qbf;
    }
}
